package org.demo2;

import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;

public class StepExecutionListener implements org.springframework.batch.core.StepExecutionListener {
    @Override
    public void beforeStep(StepExecution stepExecution) {
        System.out.println(stepExecution.getCommitCount());

    }

    @Override
    public ExitStatus afterStep(StepExecution stepExecution) {
        System.out.println(stepExecution.getCommitCount());
        return null;
    }
}
